/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.finance.entity;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 客户绑定Entity
 * @author jyangye
 * @version 2018-01-04
 */
public class ViFinBind extends DataEntity<ViFinBind> {
	
	private static final long serialVersionUID = 1L;
	private String finName;		// 财务客户名
	private String finId;		// 财务客户编号
	private String youxinName;		// 优信通客户
	private String youxinId;		// 优信通编号
	private String youxinCode;		// 优信通编码
	private String compName;		// 所属公司
	private String areaName;		// 所在区域
	private String contractName;		// 联系人姓名
	private String contractPhone;		// 联系人电话
	private String isBind;		// 是否绑定
	
	public ViFinBind() {
		super();
	}

	public ViFinBind(String id){
		super(id);
	}

	@Length(min=1, max=32, message="财务客户名长度必须介于 1 和 32 之间")
	@ExcelField(title="财务客户名", align=2, sort=20)
	public String getFinName() {
		return finName;
	}

	public void setFinName(String finName) {
		this.finName = finName;
	}
	
	@Length(min=1, max=32, message="财务客户编号长度必须介于 1 和 32 之间")
	@ExcelField(title="财务客户编号", align=2, sort=30)
	public String getFinId() {
		return finId;
	}

	public void setFinId(String finId) {
		this.finId = finId;
	}
	
	@Length(min=0, max=32, message="优信通客户长度必须介于 0 和 32 之间")
	@ExcelField(title="优信通客户", align=2, sort=40)
	public String getYouxinName() {
		return youxinName;
	}

	public void setYouxinName(String youxinName) {
		this.youxinName = youxinName;
	}
	
	@Length(min=0, max=32, message="优信通编号长度必须介于 0 和 32 之间")
	@ExcelField(title="优信通编号", align=2, sort=50)
	public String getYouxinId() {
		return youxinId;
	}

	public void setYouxinId(String youxinId) {
		this.youxinId = youxinId;
	}
	
	@Length(min=0, max=32, message="优信通编码长度必须介于 0 和 32 之间")
	@ExcelField(title="优信通编码", align=2, sort=60)
	public String getYouxinCode() {
		return youxinCode;
	}

	public void setYouxinCode(String youxinCode) {
		this.youxinCode = youxinCode;
	}
	
	@Length(min=0, max=128, message="所属公司长度必须介于 0 和 128 之间")
	@ExcelField(title="所属公司", align=2, sort=70)
	public String getCompName() {
		return compName;
	}

	public void setCompName(String compName) {
		this.compName = compName;
	}
	
	@Length(min=0, max=128, message="所在区域长度必须介于 0 和 128 之间")
	@ExcelField(title="所在区域", align=2, sort=80)
	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}
	
	@Length(min=0, max=32, message="联系人姓名长度必须介于 0 和 32 之间")
	@ExcelField(title="联系人姓名", align=2, sort=90)
	public String getContractName() {
		return contractName;
	}

	public void setContractName(String contractName) {
		this.contractName = contractName;
	}
	
	@Length(min=0, max=32, message="联系人电话长度必须介于 0 和 32 之间")
	@ExcelField(title="联系人电话", align=2, sort=100)
	public String getContractPhone() {
		return contractPhone;
	}

	public void setContractPhone(String contractPhone) {
		this.contractPhone = contractPhone;
	}
	
	@Length(min=0, max=11, message="是否绑定长度必须介于 0 和 11 之间")
	@ExcelField(title="是否绑定", align=2, sort=110)
	public String getIsBind() {
		return isBind;
	}

	public void setIsBind(String isBind) {
		this.isBind = isBind;
	}
	
}